package mspbots.cw.business.core.invoices;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * @author Jay.Yang
 */
public interface InvoicesRepository extends R2dbcRepository<Invoice, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param cwId       contactsId
     * @param tenantCode tenantCode
     * @return account entity
     */
    Mono<Invoice> findByCwIdAndTenantCode(Long cwId, Long tenantCode);

}
